package com.bean;

import com.util.excel.Excel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Ach_record implements Serializable {
    @Excel(skip = true)
    private Integer id;
    @Excel(name = "城市")
    private Integer cityid;
    @Excel(name = "订单金额")
    private BigDecimal orderamount;
    @Excel(name = "支付金额")
    private BigDecimal payamount;
    @Excel(name = "业务抽成%")
    private Float agencyprop;
    @Excel(name = "业绩")
    private BigDecimal amount;
    @Excel(skip = true)
    private Byte status;
    @Excel(name = "业绩月份")
    private String achtime;
    @Excel(skip = true)
    private Date createtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    public BigDecimal getOrderamount() {
        return orderamount;
    }

    public void setOrderamount(BigDecimal orderamount) {
        this.orderamount = orderamount;
    }

    public BigDecimal getPayamount() {
        return payamount;
    }

    public void setPayamount(BigDecimal payamount) {
        this.payamount = payamount;
    }

    public Float getAgencyprop() {
        return agencyprop;
    }

    public void setAgencyprop(Float agencyprop) {
        this.agencyprop = agencyprop;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getAchtime() {
        return achtime;
    }

    public void setAchtime(String achtime) {
        this.achtime = achtime == null ? null : achtime.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ach_record other = (Ach_record) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCityid() == null ? other.getCityid() == null : this.getCityid().equals(other.getCityid()))
            && (this.getOrderamount() == null ? other.getOrderamount() == null : this.getOrderamount().equals(other.getOrderamount()))
            && (this.getPayamount() == null ? other.getPayamount() == null : this.getPayamount().equals(other.getPayamount()))
            && (this.getAgencyprop() == null ? other.getAgencyprop() == null : this.getAgencyprop().equals(other.getAgencyprop()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getAchtime() == null ? other.getAchtime() == null : this.getAchtime().equals(other.getAchtime()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCityid() == null) ? 0 : getCityid().hashCode());
        result = prime * result + ((getOrderamount() == null) ? 0 : getOrderamount().hashCode());
        result = prime * result + ((getPayamount() == null) ? 0 : getPayamount().hashCode());
        result = prime * result + ((getAgencyprop() == null) ? 0 : getAgencyprop().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getAchtime() == null) ? 0 : getAchtime().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", cityid=").append(cityid);
        sb.append(", orderamount=").append(orderamount);
        sb.append(", payamount=").append(payamount);
        sb.append(", agencyprop=").append(agencyprop);
        sb.append(", amount=").append(amount);
        sb.append(", status=").append(status);
        sb.append(", achtime=").append(achtime);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}